package io.github.yangyouwang.module.mm.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("mm.future_symbol_current_price")
@ApiModel(value = "期货某一时刻价格对象", description = "期货某一时刻价格表")
public class FutureSymbolCurrentPrice {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "自增主键")
    private Long id;

    @ApiModelProperty(value = "品种名")
    private String symbol;

    @ApiModelProperty(value = "这条数据的时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date currentDatetime;

    @ApiModelProperty(value = "当前时间该品种的主力合约")
    private String currentMainContract;

    @ApiModelProperty(value = "当前时间当前主力合约的价格")
    private Double currentPrice;

    @ApiModelProperty(value = "该品种过去每一年的最大价格、最小价格、总成交量等信息(仅从2017年开始)")
    private String yearInfo;

    @ApiModelProperty(value = "当前品种的合约乘数")
    private Integer volumeMultiple;
}
